package com.example.zhongcao.entity;
import lombok.Data;

@Data
public class Zhongcao {
    private Integer id;
    private String  openid;
    private String title;//非空
    private String author="匿名";//非空
    private String intro;//非空
    private String address;
    private String price;
    private Integer goodNum=0;
    private String createTime;

    public String getCreateTime() {
        return createTime;
    }

    public Zhongcao() {

    }

    public Zhongcao(Integer id,String title, String author, String intro, String address, String price) {
        this.id=id;
        this.title = title;
        this.author = author;
        this.intro = intro;
        this.address = address;
        this.price = price;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public Integer getGoodNum() {
        return goodNum;
    }

    public void setGoodNum(Integer goodNum) {
        this.goodNum = goodNum;
    }

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }


    public String getTitle() {
        return title;
    }

    public String getOpenid() {
        return openid;
    }

    public void setOpenid(String openid) {
        this.openid = openid;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getIntro() {
        return intro;
    }

    public void setIntro(String intro) {
        this.intro = intro;
    }

    public String getAddress() {
        return address;
    }

    public void setAddress(String address) {
        this.address = address;
    }

    public String getPrice() {
        return price;
    }

    public void setPrice(String price) {
        this.price = price;
    }


}
